/********************************************************************************
 *      Copyright:  (C) 2024 dengleen<dengleen@outlook.com>
 *                  All rights reserved.
 *
 *       Filename:  conf.h
 *    Description:  This file 
 *
 *        Version:  1.0.0(06/05/24)
 *         Author:  dengleen<dengleen@outlook.com>
 *      ChangeLog:  1, Release initial version on "06/05/24 14:08:19"
 *                 
 ********************************************************************************/
#ifndef _CONF_H_
#define _CONF_H_

typedef struct ini_ctx_s
{
	const char     *hostname;
	const char     *clientid;
	const char     *username;
	const char     *password;
	int             port;
	
	const char     *pub_topic;
	const char     *sub_topic;
	const char     *payload;
	int             keepalive;
	int             qos;
}ini_ctx_t;


extern int get_mqtt_parameter1(char *ini_path, mqtt_ctx_t *mqtt_ctx, int option);

#endif

